class React {
  constructor(public props: any) {
    this.props = props
  }
  render () {
    console.log(this.props)
  }
}

class Header extends React {
  constructor (props: any) {
    super(props)
  }
}

let h = new Header('hello ')
h.render() // hello